<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<div class="t_bar">
	${param.title }${param.unit }
</div>
	<table  id="tblMileStones10" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<thead >
					<tr style="organization_finances/financeborder:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="5%">选择</th>
						<th class="TblHead" align="center"  width="5%">序号</th>
						<th class="TblHead" align="center"  width="10%">年度</th> 
						<th class="TblHead" align="center" width="40%">技术创新、技术改造及技术发明的主要内容（限500字）</th>	
						<th class="TblHead" align="center" width="15%">利润</th>	
						<th class="TblHead" align="center" width="15%">税收</th>	
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td align="center">
							<input type="radio" class="radiobutton" name="selMileStones10" >
						</td>
						<td align="center">
							<span name="milestones|milestone10[0]@seq_no" >[index]</span> 
						</td>
						<td align="center">
							<input name="milestones|milestone10[0]|content1" label="年度" onfocus="InitInput.setNumber(this,4,0,0)" value="" class="required year input_text "  maxlength="4" style="width:60%" />
						</td>
						<td><textarea name="milestones|milestone10[0]|content2" class="input_textarea required maxlength:500" label="技术创新、技术改造及技术发明的主要内容"   rows="10" style="width:96%"></textarea>
						<input type="hidden" name="milestones|milestone10[0]|content2_hidden" />
						</td>
						<td align="center">
							<input name="milestones|milestone10[0]|content3" label="利润" value="" class="required input_text " onfocus="InitInput.setNumber(this,7,2,2)" maxlength="100" style="text-align:right;width:80%;" />
						</td>
						<td align="center">
							<input name="milestones|milestone10[0]|content4" label="税收" value="" class="required input_text " onfocus="InitInput.setNumber(this,7,2,2)" maxlength="100" style="text-align:right;width:80%;" />
						</td>
						
					</tr>
					
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/milestones/milestone10" var="milestone10">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center">
							<input type="radio" class="radiobutton" name="selMileStones10" >
						</td>
						<td align="center">
							<span   name="milestones/milestone10[${flag}${index}]@seq_no" ><x:out select="$milestone10/@seq_no"/></span> 
						</td>
						<td align="center">
							<input value="<x:out select="$milestone10/content1"/>" label="年度" onfocus="InitInput.setNumber(this,4,0,0)" name="milestones/milestone10[${flag}${index}]/content1" maxlength="100" class="year required"  style="width:60%"  /> 
						</td>
						<td align="center">
							<textarea name="milestones/milestone10[${flag}${index}]/content2" class="required input_textarea maxlength:500" label="技术创新、技术改造及技术发明的主要内容" rows="10" style="width:96%"><x:out select="$milestone10/content2"/></textarea>
							<input type="hidden" name="milestones/milestone10[${flag}${index}]/content2_hidden" id="milestones/milestone10[${flag}${index}]/content2_hidden" value="<x:out select="$milestone10/content2_hidden"/>"/>
						</td>
						<td align="center">
							<input value="<x:out select="$milestone10/content3"/>" label="利润" name="milestones/milestone10[${flag}${index}]/content3" onfocus="InitInput.setNumber(this,7,2,2)" maxlength="100" class="required"  style="text-align:right;width:80%;" />
						</td>
						<td align="center">
							<input value="<x:out select="$milestone10/content4"/>" label="税收" name="milestones/milestone10[${flag}${index}]/content4" onfocus="InitInput.setNumber(this,7,2,2)" maxlength="100" class="required"  style="text-align:right;width:80%;" /> 
						</td>
						
					</tr>
					
					
					
					
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					<script type="text/javascript">
						showAllDateTag("tblMileStones10");
					</script>
				</tbody>
					</table>
					<br/>

					<table width="98%" align="center">
					<tr ><td>
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblMileStones10',99,'${param.title }最多只能填写99条')){addNewRow('tblMileStones10');showDateTag('tblMileStones10');}try{top.resizeFrame();}catch(e){};">
					<!--
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblMileStones',5,'项目进度信息最多只能填写5条')){addNewRow('tblMileStones');}showDateTag('tblMileStones');try{top.resizeFrame();}catch(e){};">
                    -->
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblMileStones10','selMileStones10')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblMileStones10','selMileStones10')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblMileStones10','${param.title }')">
					</td></tr>
	</table>
	<br/>
<script type="text/javascript">
$(function() {
	$("#tblMileStones10 tr:even").addClass("li_1");
	$("#tblMileStones10 tr:odd").addClass("li_2");
});
</script>